﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GreenArrow
{
    class GRect
    {
        public int Left;
        public int Top;
        public int Right;
        public int Bottom;
        public int Width { get { return Right - Left; } }
        public int Height { get { return Bottom - Top; } }
        public GRect(int x1, int y1, int x2, int y2) {
            Left = Math.Min(x1, x2);
            Top = Math.Min(y1, y2);
            Right = Math.Max(x1, x2);
            Bottom = Math.Max(y1, y2);
        }
    }
}
